<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>求职人员登记新增界面</title>
<%-- <script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.min.js"/>"></script>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"/>"></script>
<link rel="stylesheet" type="text/css"href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/default/easyui.css"/>" />
<link rel="stylesheet" type="text/css"href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/icon.css"/>" /> --%>

</head>
	<style type="text/css">
		.insert_bt {
			background: #CDDEF4;
		}
	</style>
	<script type="text/javascript">
		$(function() {
			$('.return_jsr_add').linkbutton({
				onClick : function() {
					$(".insert_jsr_add").panel({
						href : "hr_jsr"
					});
				}
			});
			
			$("#save_btn_jsr_add").linkbutton({onClick:function(){
				$("<form method='post'>").appendTo(document.body).form({
					url: 'hr_jsr_form_add_c',
					onSubmit: function(params){
						
						params["jsrName"] = $("#jsrName").textbox("getText");
						params["jsrPhone"] = $("#jsrPhone").textbox("getText");
						params["recplanId1"] = $("#recruitplan").textbox("getText");
						params["positionId1"] = $("#position").textbox("getText");
						params["jsrMode"] = $("#jsrMode").combobox("getText");
						params["jsrPlantime"] = $("#jsrPlantime").datetimebox("getText");
						params["jsrResult"] = $("#sfly").combobox("getText");
						params["jsrRemarks"] = $("#jsrRemarks").textbox("getText");
						
					},
					success:function(v){
						v = eval("(" + v + ")");
						if(v.success){
						/* 	$(".insert_pta").panel({
								href : "to_pay"
							}); */
							$.messager.alert('提示', '新增成功');
						}else{
							$.messager.alert('错误', '对不起，操作失败，原因：' + v.message);
						}
					}
				}).submit();
			}});
			
			
			
			
			
			
			
			
			
			
			
			
			//招聘计划
			$('#recruitplan').textbox({
				icons:[{
					iconCls:'icon-add',
					handler:function(e){
						$('#jsr_recruitplan_dialog_add').dialog('open');
						//双击获取值
						$('#jsr_recruitplan_datagrid_add_area').datagrid({onDblClickRow:function(index,row){
								var id=row.recplanId;
								var re=row.recplanDescribe;
								$('#recruitplan').textbox('setValue',id);
								$('#jsr_recplanDescribe').textbox('setValue',re);
								
								//关闭窗口
								$('#jsr_recruitplan_dialog_add').dialog('close');
							}
						});
					}
				}]
			});
			
			
			//应聘职位
			$('#position').textbox({
				icons:[{
					iconCls:'icon-add',
					handler:function(e){
						$('#jsr_position_dialog_add').dialog('open');
						//双击获取值
						$('#jsr_position_datagrid_add_area').datagrid({onDblClickRow:function(index,row){
								var id=row.positionId;
								var name=row.positionName;
								$('#position').textbox('setValue',id);
								$('#jsr_positionName').textbox('setValue',name);
								
								//关闭窗口
								$('#jsr_position_dialog_add').dialog('close');
							}
						});
					}
				}]
			});
		});
	</script>
	<div class="easyui-panel insert_jsr_add"data-options="fit:true,border:false,tools:'#insert_jsr_add'">
		<!-- 按钮 -->
		<div id="insert_jsr_add" class="insert_jsr_add">
			<a href="#" class="easyui-linkbutton return_jsr_add" iconCls="icon-reload"
				plain="true" title="返回" data-options="text:'返回'"></a> 
			<a class="easyui-linkbutton" id= 'save_btn_jsr_add'  data-options="text:'完成',iconCls:'icon-add',plain:true"></a>
			<span style="float: right; font-size: 12px; margin-top: 5px;"></span>
		</div>
		<!-- 添加面板 -->
		<div style="height: 10px;"></div>
		<div style="margin-left: 10px">
			<div style="font-size: 14px;">概要</div>
			
			<!-- *姓名  *手机号码  招聘计划   应聘职位
				 -->
			
			<div style="border-top: 2px solid #19aa8d; width: 420px; display: inline-block; margin-right: 15px;height:260px;">
				<table cellspacing="10" style="margin-left: 50px;">
					<tbody>
						<tr>
							<td><input class="easyui-textbox" id="jsrName"
								data-options="label:'姓名', width:250,labelWidth:130" /></td>
								<td></td>
						</tr>
						<tr>
							<td><input class="easyui-textbox" id="jsrPhone"
								data-options="label:'手机号码  ', width:250,labelWidth:130" /></td>
							<td></td>
						</tr>
						<tr>
							<td><input class="easyui-textbox" id="recruitplan"
								data-options="label:'招聘计划  ', width:250,labelWidth:130" /></td>
							<td><input class="easyui-textbox" id="jsr_recplanDescribe"
								data-options="width:80" /></td>
						</tr>
						<!-- <tr>
							<td><input class="easyui-textbox" id="recplanPenddate"
								data-options="label:'密码  ', width:250,labelWidth:130" /></td>
							<td></td>
						</tr> -->
						<tr>
							<td><input class="easyui-textbox" id="position"
								data-options="label:'应聘职位  ', width:250,labelWidth:130" /></td>
							<td><input class="easyui-textbox" id="jsr_positionName"
								data-options="width:80" /></td>
						</tr>
						
					</tbody>
				</table>
			</div>
			<!-- 凭证日期  

				招聘方式  
				*通知状态  
				计划面试时日
			 -->
			<div style="border-top: 2px solid #19aa8d; width: 420px; display: inline-block;height:260px;">
				<table cellspacing="10" style="margin-left: 50px;">
					<tbody>
						<tr>
							<td>招聘方式  &nbsp;  &nbsp;   &nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     
									 <select id="jsrMode" class="easyui-combobox" data-options="panelHeight:'auto'" style="width:160px;">   
									    <option>网上招聘</option>  
									    <option>现场招聘</option>   
								</select> 
								</td>
						</tr>
	
						<tr>
							<td><input class="easyui-datetimebox" id="jsrPlantime"
								data-options="label:'计划面试时日  ', width:250,labelWidth:130" /></td>
							<td></td>
						</tr>
						<tr>
							<td>招聘结果  &nbsp;  &nbsp;   &nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     
									 <select id="sfly" class="easyui-combobox" data-options="panelHeight:'auto'" style="width:160px;">   
									    <option>未录用</option>  
									    <option>录用</option>   
									  
								</select> 
								</td>
						</tr>
						
					</tbody>
				</table>
			</div>
			<div style="font-size: 14px;">备注</div>
			<div
				style="border-top: 2px solid #19aa8d; width: 860px; height: 130px; display: inline-block; margin-right: 15px; padding-top: 10px;">
				<input class="easyui-textbox" id="jsrRemarks"
					data-options="width:860,height:100,multiline:true" />
			</div>
		</div>
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
					
		<!-- 弹框 -->
		<div class="easyui-dialog" id="jsr_recruitplan_dialog_add"
			data-options="width:550,height:400,title:'招聘计划查找',
				modal:true,
				closed:true,
				buttons:[{
					text:'确定',
					iconCls:'icon-ok',
					handler:function(){
						var id=row.recplanId;
						var re=row.recplanDescribe;
						$('#recruitplan').textbox('setValue',id);
						$('#jsr_recplanDescribe').textbox('setValue',re);
						//关闭窗口
						$('#jsr_recruitplan_dialog_add').dialog('close');
					}
				},{
					text:'取消',
					iconCls:'icon-clear',
					handler:function(){
						$('#jsr_recruitplan_dialog_add').dialog('close');		
					}
				}]">
			<div id="exam_paper_insert_tb">
				<div class="line">
					<input class="easyui-textbox "
						data-options="label:'招聘计划编号',width:350,labelWidth:130" />
				</div>
				<div class="line">
					<input class="easyui-textbox"
						data-options="label:'招聘计划详情',width:350,labelWidth:130" />
					<a class="easyui-linkbutton"
						data-options="text:'搜索',width:100" style="float: right" />
				</div>
			</div>
			<div class="easyui-panel" data-options="fit:true,border:false" >
				<table class="easyui-datagrid" id="jsr_recruitplan_datagrid_add_area"
					data-options="
							fit:true,
							singleSelect:true,
							nowrap:true,
							rownumbers:true,
							toolbar:'exam_paper_insert_tb',
							<!-- 分页 -->			
							pagination:true,
							url:'hr_jsr_find_recruitplan_Reverse?jsrId=${job.jsrId}',
							pageSize:5,
							pageList:[5,10,15]">
					<thead>
						<tr>
							<th data-options="width:140,align:'center',field:'recplanId'" id="parper_insert_id">招聘计划编号</th>
							<th data-options="width:270,align:'center',field:'recplanDescribe'" id="parper_insert_name">招聘计划详情</th>
						</tr>
					</thead>
					<tbody>
						
					</tbody>
				</table>
			</div>
			</div>
			
			
			
			
			
			
			
			
			<!-- 弹框 -->
		<div class="easyui-dialog" id="jsr_position_dialog_add"
			data-options="width:550,height:400,title:'职位查找',
				modal:true,
				closed:true,
				buttons:[{
					text:'确定',
					iconCls:'icon-ok',
					handler:function(){
						var id=row.recplanId;
						var re=row.recplanDescribe;
						$('#position').textbox('setValue',id);
						$('#jsr_recplanDescribe').textbox('setValue',re);
						//关闭窗口
						$('#jsr_position_dialog_add').dialog('close');
					}
				},{
					text:'取消',
					iconCls:'icon-clear',
					handler:function(){
						$('#jsr_position_dialog_add').dialog('close');		
					}
				}]">
			<div id="exam_paper_insert_tb">
				<div class="line">
					<input class="easyui-textbox "
						data-options="label:'职位编号',width:350,labelWidth:130" />
				</div>
				<div class="line">
					<input class="easyui-textbox"
						data-options="label:'职位名称',width:350,labelWidth:130" />
					<a class="easyui-linkbutton"
						data-options="text:'搜索',width:100" style="float: right" />
				</div>
			</div>
			<div class="easyui-panel" data-options="fit:true,border:false" >
				<table class="easyui-datagrid" id="jsr_position_datagrid_add_area"
					data-options="
							fit:true,
							singleSelect:true,
							nowrap:true,
							rownumbers:true,
							toolbar:'exam_paper_insert_tb',
							<!-- 分页 -->			
							pagination:true,
							url:'hr_jsr_find_position_Reverse?jsrId=${job.jsrId}',
							pageSize:5,
							pageList:[5,10,15]">
					<thead>
						<tr>
							<th data-options="width:140,align:'center',field:'positionId'" id="parper_insert_id">职位编号</th>
							<th data-options="width:270,align:'center',field:'positionName'" id="parper_insert_name">职位名称</th>
						</tr>
					</thead>
					<tbody>
						
					</tbody>
				</table>
			</div>
			</div>
			
			
			
			
			
			
			
			
			
			
			
			
	</div>
</body>
</html>